// 分页

const state = {
  total: 20,
  pageSize: 10,
  currentPage4: 1
};

const mutations = {
  // 总条数
  SET_TOTAL(state, val) {
    state.total = val;
  },
  //每页面条数
  SET_PAGESIZE(state, val) {
    state.pageSize = val;
  },
  // 页数
  SET_CURRENTPAGE(state, val) {
    state.currentPage4 = val;
  },
};

const actions = {
  set_total({ commit }, val) {
    commit("SET_TOTAL", val);
  },
  set_pageSize({ commit }, val) {
    commit("SET_PAGESIZE", val);
  },
  set_currentPage4({ commit }, val) {
    commit("SET_CURRENTPAGE", val);
  }
};

export default {
  namespaced: true,
  state,
  mutations,
  actions
};
